<?php
/**
 * Created by PhpStorm.
 * User: 魏爷
 * Date: 2016/5/6
 * Time: 23:29
 */

namespace Home\Model;


class BookTypeModel extends BaseModel
{
    // 数据表名（不包含表前缀）
    protected $tableName        =   'booktype';

    /**
     * 查询图书类型表
     * @return Array()
    **/
    public function getBookTypeTableInfo(){
        return $this->where("book_type_status=1")->order('book_type_id DESC')->select();
    }
}